const express = require('express')
const app = express()

//把public目录下的所有静态资源文件设置为可访问，访问的时候只需要http:127.0.0.1:8080/资源名称即可访问
app.use(express.static('./service/public'))

const userServe = require('./service/user')
const commonServe = require('./service/common')
app.use(userServe)
app.use(commonServe)

app.listen(5000, () => {
    console.log("服务器已启动,端口号5000")
})
